package com.gzcss.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gzcss.common.utils.PageUtils;
import com.gzcss.gulimall.ware.entity.WareSkuEntity;
import com.gzcss.gulimall.ware.vo.SkuHasStock;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author GGH
 * @email 1421938824@qq.com
 * @date 2022-04-16 13:11:33
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     *
     * @param skuId   商品ID
     * @param wareId 仓库ID
     * @param skuNum 入库数量
     */
    void addStock(Long skuId, Long wareId, Integer skuNum);

    List<SkuHasStock> hasStock(List<Long> skuIds);

}

